﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Model.View
{
    public class VLaunched
    {
        public int ID { get; set; }

        /// <summary>
        /// -1 被删除 0 待发起  1 已发起 2:撤回 3 审核不通过 4 已审核
        /// </summary>
       
        public int Status { get; set; }

        public DateTime CreateDateTime { get; set; }

        [NotMapped]
        public string StatusName
        {
            get
            {
                switch (this.Status)
                {

                    case -1: return "被删除";
                    case 0: return "待发起";
                    case 1: return "已发起";
                    case 2: return "已撤回";
                    case 3: return "审核不通过";
                    case 4: return "已审核";
                    default: return this.Status.ToString();
                }
            }
        }

        public int CustomID { get; set; }

        public int FormID { get; set; }

         
        public string Title { get; set; }

        public string No { get; set; }

      

        public string SponsorEmpID { get; set; }

        public int SponsorPositionID { get; set; }

        /// <summary>
        /// 解释说明
        /// </summary>
        public string Explain { get; set; }

        /// <summary>
        /// 当前审批人
        /// </summary>
        public string Suspense { get; set; }

        public DateTime? FinishTime { get; set; }

        public string NeedExplainEmpID { get; set; }

        public string Name { get; set; }

        [NotMapped]
        public List<string> SuspenseImges { get; set; }

        [NotMapped]
        public string SuspenseEmpName { get; set; }

        public string SuspenseEmpID { get; set; }


    }
}
